<?php
session_start();
ob_start();
date_default_timezone_set("Asia/Shanghai");
require "../function/mysql.php";
require "../function/cookie.php";
require "../function/data.php";
require "../function/function.php";
require "../function/function_add.php";
require "../function/function_addpage.php";
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" style="overflow: hidden;">
<head>
	<meta http-equiv="Content-type" Content="text/html;charset=utf-8" />
	<title>添加挂机记录</title>
	<link href="../css/style.css" type="text/css" rel="stylesheet">
</head>
	<body class="bgpages">
		<div id="pages-add">
				<?php 
				if ($mysqlpass!=$cookiepass){
				echo "您登录超时!";
				}elseif($userinfo['qqnum']>=$userinfo['quota']){
				echo qqbaopeng();
				}elseif(isset($_GET['type'])){
				if (isset($_POST['qq']) or isset ($_POST['mima'])){
				echo '<div id="addqqyes">';
				$out=addqq($_POST['qq'],$_POST['mima']);
				echo panduanqq($out,$_POST['qq'],$_POST['mima'],qidcz(),fuwuqirand(),$cookieuser,$userinfo['qqnum']);
				echo '</div>';
				}else{
				echo "请重挂Q页面访问";
				}
				}else{
				addpage();
				}
				?>
		</div>
	</body>
</html>